package com.synnex.mobile.servier.core.service.impl;

import com.synnex.mobile.generic.core.config.service.ConfigurationService;
import com.synnex.mobile.generic.core.service.impl.BaseServiceImpl;
import com.synnex.mobile.servier.core.config.ServierConfigHelper;
import com.synnex.mobile.servier.core.config.SystemKeys;
import com.synnex.mobile.servier.core.updateTime.dao.UpdateTimeDao;

/**
 * @author kerryf
 */
public abstract class AbstractServiceImpl extends BaseServiceImpl {
    private ConfigurationService configurationService;
    protected UpdateTimeDao updateTimeDao;


    public void setUpdateTimeDao(UpdateTimeDao updateTimeDao) {
        this.updateTimeDao = updateTimeDao;
    }

    public ConfigurationService getConfigService() {
        return this.configurationService;
    }

    public void setConfigurationService(ConfigurationService configurationService) {
        this.configurationService = configurationService;
    }

    public ServierConfigHelper getConfig() {
        return this.getConfigService().getHelper(SystemKeys.APP_NAME, ServierConfigHelper.class);
    }
}
